package com.example.email_start;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(MailUtils.class)
public class MailServiceAutoConfiguration {
    @Bean
    public  MailUtils sendEmail(){
        return  new MailUtils();
    }
}
